<?php

namespace app\mobile\controller;

class Ucase extends base
{
    protected $beforeActionList = [
        'right' => ['only' => 'index,detailed'],
        'images' => ['only' => 'detailed'],
    ];


    /**
     * 更多图片
     */
    public function images()
    {
        $images = model('UcaseImages')->where('pid', $this->request->param('id'))->column('image');
        $this->assign([
            'images' => $images,
        ]);
    }


//    public function detailed($id)
//    {
//        $data= $this->obj->get($id);
//        //更多图片
//        $data['images'] = model('UcaseImages')->where('pid', $data['id'])->select();
//        $next = $this->obj->getnext($id);
//        $this->assign([
//           'data'=> $data,
//           'next'=> $next,
//        ]);
//        return $this->fetch();
//    }
}
